<%@ page contentType="text/html; charset=utf-8"%>
<%@page import="java.sql.*"%>
<%@page import="java.util.*"%>
<script language="javascript">
	function checkEmpty(form) {
		for (i = 0; i < form.length; i++) {
			if (form.elements[i].value == "") {
				alert("表单信息不能为空");
				return false;
			}
		}
	}
</script>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<title>电子商城的后台</title>
</head>
<html>
<link href="css/css.css" rel="stylesheet" type="text/css">
<body>
	<jsp:include page="bg-up.jsp" flush="true" />
	<table width="788" border="0" align="center" cellpadding="0"
		cellspacing="0">
		<tr>
			<td width="170" valign="top"><jsp:include page="bg-left.jsp"
					flush="true" /></td>
			<td width="618" align="center" valign="top" bgcolor="#FFFFFF"><br>

				<table width="610" height="25" border="0" cellpadding="0"
					cellspacing="0" background="image/bg_02.jpg">
					<tr>
						<td><div align="center">
								<strong>添加公告信息</strong>
							</div></td>
					</tr>
				</table> <br>
				<form name="form" action="insertaffiche" method="post" onsubmit="return checkEmpty(form)">
					<table width="90%" height="243" border="1" cellpadding="1"
						cellspacing="1" bordercolor="#FFFFFF" bgcolor="#CCCCCC">
						<tr>
							<td width="23%" height="30"><div align="center">公告标题</div></td>
							<td width="77%" bgcolor="#FFFFFF">
							<input name="name" type="text" size="55"></td>
						</tr>
						<tr>
							<td height="208"><div align="center">公告内容</div></td>
							<td bgcolor="#FFFFFF">
							<textarea name="content" cols="45" rows="13" class="textarea"></textarea></td>
						</tr>
					</table>
					<br> 
					<input type="image" class="input1" src="image/save.jpg" width="51" height="20"> &nbsp;&nbsp; 
					<a href="#"	onClick="javascript:form.reset()"><img src="image/clear.gif"></a> &nbsp;&nbsp; 
					<a href="#"	onClick="javasrcipt:history.go(-1)"><img src="image/back.gif"></a>
				</form></td>
		</tr>
	</table>
	<jsp:include page="bg-down.jsp" flush="true" />
</body>
</html>
